package PLCSymbolAndScope.PLCSymbols;

import PLCSymbolAndScope.IDGenerator;
import PLCSymbolAndScope.PLCScope.PLCScope;
import PLCSymbolAndScope.PLCScopeStack;
import PLCSymbolAndScope.PLCSymbolTables.PLCSymbolTable;

public class PLCTypeDeclSymbol extends PLCSymbol{

    public PLCTypeDeclSymbol() {
        super();
    }

    public PLCTypeDeclSymbol(String name, int rowNum) {
        super(IDGenerator.newTypeId(), name, rowNum);
    }

    //内置类型初始化专供,其他情况不应当调用
    public PLCTypeDeclSymbol(int symbolId, int typeId, String name){
        this.symbolId = symbolId;
        this.typeId = typeId;
        this.name = name;
        this.rowNum = -1;
        this.localScope = PLCScopeStack.globalScope;
        this.localSymbolTable = PLCScopeStack.globalSymbolTable;
    }
}
